package www.wen.com.common.ext

import www.wen.com.common.theme.Theme

/**
 * 整型转主题枚举类型
 */
fun Int.toCoverTheme(): Theme {
    for(theme in Theme.entries){
        if(theme.ordinal == this){
            return theme
        }
    }
    return Theme.LIGHT
}